<template>
  <div class="login">
    <div class="bg-image">
      <div class="login-box">
        <div class="left">
          <div class="left-top">
            <div>郑州联通城市大脑</div>
            <div>这是一段该系统的标志短语</div>
            <div>这是该系统的一个简短副标题</div>
            <div>
              这是一段该系统的介绍，这是一段该系统的介绍，这是一段该系统的介绍，这是一段该系统的介绍，这是一段该系统的介绍，这是一段该系统的介绍，这是一段该系统的介绍，这是一段该系统的介绍，这是一段该系统的介绍，这是一段该系统的介绍，这是一段该系统的介绍，这是一段该系统的介绍，
            </div>
          </div>
          <div class="left-bottom">
            <span>联通城市大脑</span> · 这是一段该系统的标志短语
          </div>
        </div>
        <div class="right">
          <div class="one">
            <div class="text">登录</div>
            <img src="@/assets/images/logo.png" alt="" />
          </div>
          <div class="two">
            <a-input class="input" placeholder="请输入账号"></a-input>
            <a-input-password
              class="input"
              placeholder="请输入密码"
            ></a-input-password>
          </div>
          <a-button class="login-button" type="primary" @click="clickLogin">
            登录
          </a-button>
        </div>
      </div>
    </div>
  </div>
</template>
<script setup lang="ts">
// 引入组件
// 引入方法
import { defineProps, defineEmits, watch, onMounted, ref } from 'vue'
import { useRouter } from 'vue-router'
const props = defineProps({})
const emits = defineEmits([])
// 自定义状态
const router = useRouter()
onMounted(() => {})
// 自定义方法
//点击登录
const clickLogin = () => {
  router.push('/layout')
}
</script>
<style lang="less" scoped>
.login {
  width: 100vw;
  height: 100vh;
  .bg-image {
    position: relative;
    width: 100%;
    height: 100%;
    background: url('@/assets/images/登录页-背景.jpg') no-repeat;
    background-size: cover;
    background-position: center;
    .login-box {
      display: flex;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: (1130 / @vw);
      height: (650 / @vh);
      .left {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: (86 / @vh) (90 / @vw);
        width: 50%;
        height: 100%;
        background-color: @tc;
        color: #fff;
        .left-top {
          div:nth-child(1) {
            margin-bottom: (42 / @vh);
            font-size: (26 / @vw);
            font-weight: bold;
          }
          div:nth-child(2) {
            margin-bottom: (58 / @vh);
            font-size: (24 / @vw);
            font-weight: bold;
          }
          div:nth-child(3) {
            margin-bottom: (14 / @vh);
            font-size: (14 / @vw);
            opacity: 0.8;
          }
          div:nth-child(4) {
            margin-bottom: (129 / @vh);
            font-size: (14 / @vw);
          }
        }

        .left-bottom {
          font-size: (14 / @vw);
          span {
            font-weight: bold;
          }
        }
      }
      .right {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: (90 / @vh) (80 / @vw) (176 / @vh);
        width: 50%;
        height: 100%;
        background-color: #fff;
        .one {
          display: flex;
          justify-content: space-between;
          height: (70 / @vh);
          .text {
            display: flex;
            flex-direction: column;
            justify-content: end;
            height: 100%;
            font-size: (24 / @vw);
            font-weight: bold;
          }
          img {
            width: (126 / @vw);
            height: (70 / @vh);
          }
        }
        .two {
          .input {
            height: (42 / @vh);
            &:nth-child(1) {
              margin-bottom: (36 / @vh);
            }
          }
        }
        .login-button {
          width: 100%;
          height: (42 / @vh);
        }
      }
    }
  }
}
</style>
